package com.tj.service.impl;

import com.tj.mapper.SetMealMapper;
import com.tj.pojo.SetMeal;
import com.tj.service.SetMealService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class SetMealServiceImpl implements SetMealService {
    @Resource
    private SetMealMapper setMealMapper;

    @Override
    public List<SetMeal> findAllList() {
        return setMealMapper.findAllList();
    }

    @Override
    public List<SetMeal> findSetMealListByName(String name) {
        return setMealMapper.findSetMealListByName(name);
    }

    @Override
    public SetMeal findSetMealById(int smId) {
        return setMealMapper.findSetMealById(smId);
    }

    @Override
    public int insertSetMeal(SetMeal setMeal) {
        return setMealMapper.insertSetMeal(setMeal);
    }

    @Override
    public int updateSetMeal(SetMeal setMeal) {
        return setMealMapper.updateSetMeal(setMeal);
    }

    @Override
    public int deleteSetMeal(SetMeal setMeal) {
        return setMealMapper.deleteSetMeal(setMeal);
    }

}
